export default React.createClass({

    render (){
        if (this.props.checked) {
            return (
                <span className="titBtn">{(this.props.name || this.props.class.name)}
                    <i
                        onClick={()=> {
                            this.props.onremove();
                        }}
                        className="fa fa-times"></i>
            </span>
            )
        } else {
            return (
                <span></span>
            )
        }


    }
});
